composetable: Rewrite Compose files if necessary
authorMatthias Clasen <mclasen@redhat.com>
Wed, 14 Jul 2021 11:38:32 +0000 (07:38 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 15 Jul 2021 13:30:09 +0000 (09:30 -0400)
commit87e2a02e0c69cec7c04a48265761da13b99c9a2b
tree76b78813abb3fc8fe3aff0ef430e7d320f55b8bd
parent264d592012c3d909e5fc4d07198ede73e1badbec
composetable: Rewrite Compose files if necessary

Apply heuristics to avoid breaking users existing configurations
with the change to not always add the default sequences.

If we find a cache that was generated before 4.4, and the Compose
file does not have an include, and doesn't contain so many sequences
that it is probably a copy of the system one, we take steps to keep
things working, and thell the user about it.
gtk/compose/compose-parse.c
gtk/gtkcomposetable.c
gtk/gtkcomposetable.h
testsuite/gtk/composetable.c